<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Mapache: Referencia de la Clase ProtocoloHTTP</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../Mapache.png"></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Mapache&#160;<span id="projectnumber">v1.0.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Página&#160;principal</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Clases</span></a></li>
      <li><a href="../../files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Lista&#160;de&#160;clases</span></a></li>
      <li><a href="../../classes.html"><span>Índice&#160;de&#160;clases</span></a></li>
      <li><a href="../../inherits.html"><span>Jerarquía&#160;de&#160;la&#160;clase</span></a></li>
      <li><a href="../../functions.html"><span>Miembros&#160;de&#160;las&#160;clases</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('d9/dfd/classProtocoloHTTP.html','../../');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Métodos públicos</a> &#124;
<a href="#pri-attribs">Atributos privados</a>  </div>
  <div class="headertitle">
<h1>Referencia de la Clase ProtocoloHTTP</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ProtocoloHTTP" -->
<p><code>#include &lt;ProtocoloHTTP.h&gt;</code></p>
<div class="dynheader">
Diagrama de colaboración para ProtocoloHTTP:</div>
<div class="dyncontent">
<div class="center"><img src="../../d0/d95/classProtocoloHTTP__coll__graph.png" border="0" usemap="#ProtocoloHTTP_coll__map" alt="Collaboration graph"/></div>
<map name="ProtocoloHTTP_coll__map" id="ProtocoloHTTP_coll__map">
<area shape="rect" id="node2" href="../../dd/d10/classTCPSocket.html" title="TCPSocket" alt="" coords="16,101,107,131"/></map>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">significado de colores y flechas</a>]</span></center></div>

<p><a href="../../d4/d6d/classProtocoloHTTP-members.html">Lista de todos los miembros.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Métodos públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dfd/classProtocoloHTTP.html#a34b6b63ce50c20b24a56abf0674b4a93">ProtocoloHTTP</a> (<a class="el" href="../../dd/d10/classTCPSocket.html">TCPSocket</a> *s)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dfd/classProtocoloHTTP.html#a8d17eb4f6dfc5e0d190b3227b9974889">~ProtocoloHTTP</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../de/d2b/classHTTP__Request.html">HTTP_Request</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dfd/classProtocoloHTTP.html#abccd0ad62263b6f9a8f827cd15d443ad">recibirOperacion</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dfd/classProtocoloHTTP.html#a740ee980a590baeccc39445f2326ef69">enviarRespuesta</a> (<a class="el" href="../../dd/d27/classHTTP__Response.html">HTTP_Response</a> *r)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Atributos privados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dd/d10/classTCPSocket.html">TCPSocket</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dfd/classProtocoloHTTP.html#ae6125f56c98bcb18e0990cbeb5735100">sock</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descripción detallada</h2>
<div class="textblock"><p>Clase que asbtrae el manejo de los sockets y el protocolo HTTP </p>
</div><hr/><h2>Documentación del constructor y destructor</h2>
<a class="anchor" id="a34b6b63ce50c20b24a56abf0674b4a93"></a><!-- doxytag: member="ProtocoloHTTP::ProtocoloHTTP" ref="a34b6b63ce50c20b24a56abf0674b4a93" args="(TCPSocket *s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocoloHTTP::ProtocoloHTTP </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d10/classTCPSocket.html">TCPSocket</a> *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">socket</td><td>que utilizará el protocolo http. Este debe estar conectado. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8d17eb4f6dfc5e0d190b3227b9974889"></a><!-- doxytag: member="ProtocoloHTTP::~ProtocoloHTTP" ref="a8d17eb4f6dfc5e0d190b3227b9974889" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocoloHTTP::~ProtocoloHTTP </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor </p>

</div>
</div>
<hr/><h2>Documentación de las funciones miembro</h2>
<a class="anchor" id="a740ee980a590baeccc39445f2326ef69"></a><!-- doxytag: member="ProtocoloHTTP::enviarRespuesta" ref="a740ee980a590baeccc39445f2326ef69" args="(HTTP_Response *r)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ProtocoloHTTP::enviarRespuesta </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d27/classHTTP__Response.html">HTTP_Response</a> *&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Envia un <a class="el" href="../../dd/d27/classHTTP__Response.html">HTTP_Response</a> a traves del socket asociado. En caso de desconexion arroja socket exception </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>es la respuesta que se desea enviar. </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Gráfico de llamadas para esta función:</div>
<div class="dyncontent">
<div class="center"><img src="../../d9/dfd/classProtocoloHTTP_a740ee980a590baeccc39445f2326ef69_cgraph.png" border="0" usemap="#d9/dfd/classProtocoloHTTP_a740ee980a590baeccc39445f2326ef69_cgraph" alt=""/></div>
<map name="d9/dfd/classProtocoloHTTP_a740ee980a590baeccc39445f2326ef69_cgraph" id="d9/dfd/classProtocoloHTTP_a740ee980a590baeccc39445f2326ef69_cgraph">
<area shape="rect" id="node3" href="../../dd/d10/classTCPSocket.html#a2c6a999235f22bdc25cf62a2dec8213f" title="TCPSocket::enviar" alt="" coords="303,5,436,35"/><area shape="rect" id="node5" href="../../dd/d27/classHTTP__Response.html#a3b3cfd0561a6c4ef3bf20eb4e3f2e491" title="HTTP_Response::getCadena" alt="" coords="272,59,467,88"/><area shape="rect" id="node7" href="../../da/d66/classTime.html#a8aa8d1b48cf12b4b0d1ca403b5322370" title="Time::getFechaHora" alt="" coords="544,32,685,61"/><area shape="rect" id="node9" href="../../d8/dea/classHTTP__Message.html#a23a0d26013b9e9ae12d37868863433dd" title="HTTP_Message::getProtocolo" alt="" coords="516,85,713,115"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abccd0ad62263b6f9a8f827cd15d443ad"></a><!-- doxytag: member="ProtocoloHTTP::recibirOperacion" ref="abccd0ad62263b6f9a8f827cd15d443ad" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../de/d2b/classHTTP__Request.html">HTTP_Request</a> * ProtocoloHTTP::recibirOperacion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Recibe un pedido u operacion a travez del socket asociado En caso de desconexion arroja socket exception </p>
<dl class="return"><dt><b>Devuelve:</b></dt><dd><a class="el" href="../../de/d2b/classHTTP__Request.html">HTTP_Request</a> con el pedido recibido </dd></dl>

<p><div class="dynheader">
Gráfico de llamadas para esta función:</div>
<div class="dyncontent">
<div class="center"><img src="../../d9/dfd/classProtocoloHTTP_abccd0ad62263b6f9a8f827cd15d443ad_cgraph.png" border="0" usemap="#d9/dfd/classProtocoloHTTP_abccd0ad62263b6f9a8f827cd15d443ad_cgraph" alt=""/></div>
<map name="d9/dfd/classProtocoloHTTP_abccd0ad62263b6f9a8f827cd15d443ad_cgraph" id="d9/dfd/classProtocoloHTTP_abccd0ad62263b6f9a8f827cd15d443ad_cgraph">
<area shape="rect" id="node3" href="../../de/d2b/classHTTP__Request.html#a2316c4b768e27fbb40238f86e7a20ba7" title="HTTP_Request::getContentLength" alt="" coords="269,5,493,35"/><area shape="rect" id="node7" href="../../dd/d10/classTCPSocket.html#a23ce5b78255bac6ce60f0e1fd90cca82" title="TCPSocket::recibir" alt="" coords="315,59,448,88"/><area shape="rect" id="node9" href="../../de/d2b/classHTTP__Request.html#ab001505e441187de366deecbb27f7735" title="HTTP_Request::setContenido" alt="" coords="283,112,480,141"/><area shape="rect" id="node5" href="../../de/d2b/classHTTP__Request.html#ae4a09b71edc84e350e6ecc61724ad50d" title="HTTP_Request::getValor" alt="" coords="543,5,711,35"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Documentación de los datos miembro</h2>
<a class="anchor" id="ae6125f56c98bcb18e0990cbeb5735100"></a><!-- doxytag: member="ProtocoloHTTP::sock" ref="ae6125f56c98bcb18e0990cbeb5735100" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dd/d10/classTCPSocket.html">TCPSocket</a>* <a class="el" href="../../d9/dfd/classProtocoloHTTP.html#ae6125f56c98bcb18e0990cbeb5735100">ProtocoloHTTP::sock</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
<li>Mapache/src/servidor/protocoloHTTP/<a class="el" href="../../de/d17/ProtocoloHTTP_8h.html">ProtocoloHTTP.h</a></li>
<li>Mapache/src/servidor/protocoloHTTP/<a class="el" href="../../d4/dfe/ProtocoloHTTP_8cpp.html">ProtocoloHTTP.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="../../d9/dfd/classProtocoloHTTP.html">ProtocoloHTTP</a>      </li>
      <li class="footer">Generado el Domingo, 20 de Noviembre de 2011 00:38:06 para Mapache por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Clases</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
